package polymorphismlearn;

public class Instrument {
	public int f = 0;
	public Instrument(){
		System.out.println("Instrument");
	}
	public void play(Note t){
		System.out.println("Instrument play "+t);
		this.test3(t);
	}
	public final void test(Note t){
		System.out.println("Instrument test "+t);
	}
	private void test3(Note t){
		System.out.println("Instrument test2 "+ t);
	}
	public static void test4(){
		System.out.println("Instrument static test");
	}
	public Instrument getObject(){
		return new Instrument();
	}
}
